﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucDetail.ascx.cs" Inherits="TTMarketing.CameraUserControl.SanPham.ucDetail" %>
<%@ Register Src="ucGetOtherById.ascx" TagName="ucGetOtherById" TagPrefix="uc1" %>
<%@ Register Src="ucDetailTab.ascx" TagName="ucDetailTab" TagPrefix="uc2" %>
<div class="main-content-title">
    <img src="../Styles/images/web_camera.png" alt="" width="20" height="20" align="absmiddle" />Thông
    tin sản phẩm</div>
<div class="main-content-palce">
    <div class="main-content">
        <table width="100%">
            <tr>
                <td>
                    <asp:ObjectDataSource ID="odsProduct" runat="server" SelectMethod="getById" TypeName="TTBusiness.ClassDB.clsBSProduct">
                        <selectparameters>
                    <asp:QueryStringParameter Name="id" QueryStringField="id" 
                        Type="Int32" />
                </selectparameters>
                    </asp:ObjectDataSource>
                    <telerik:RadListView ID="RadListView1" runat="server" DataSourceID="odsProduct" BorderWidth="0px"
                        ItemPlaceholderID="ph" AllowPaging="True" PageSize="15" Width="100%" OnItemCommand="RadListView1_ItemCommand"
                        OnPreRender="RadListView1_PreRender">
                        <LayoutTemplate>
                            <asp:PlaceHolder runat="server" ID="ph" />
                        </LayoutTemplate>
                        <ItemTemplate>
                            <table width="100%" id="Product-l">
                                <tr>
                                    <td align="center" style="width:249px" valign="top">
                                        <img src='<%# "/Image/Upload/" +Eval("Image") %>' class="photduct-photo"/>
                                    </td>
                                    <td align="left" valign="top">
                                        <table width="100%" style="height: 100%;">
                                            <tr>
                                                <td height="160px" valign="top">
                                                    <span style="font-size: 18px; font-weight: bold;">
                                                        <%#Eval("Name") %></span>
                                                    <br />
                                                    <asp:DataList ID="DataList1" runat="server" DataSource='<%# Eval("tblProduct_Attributes") %>'
                                                        Width="100%">
                                                        <itemtemplate>
                                        <asp:Label ID="Label5" runat="server" Text='<%# Eval("tblCate_Attribute.tblAttribute.Name") %>'></asp:Label>
                                        &nbsp;:
                                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("Value") %>'></asp:Label>
                                        <br />
                                    </itemtemplate>
                                                    </asp:DataList>
                                                    <br />
                                                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("SeriNumber") %>'></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" height="30px">
                                                    <asp:HiddenField ID="hfPrice" runat="server" Value='<%# Eval("Price") %>' />
                                                    <asp:HiddenField ID="hfName" runat="server" Value='<%# Eval("Name") %>' />
                                                    <asp:ImageButton ID="btnNganLuong" runat="server" ImageUrl="~/Styles/Images/ngang-luong-thanh-toan.gif" />
                                                    &nbsp;<asp:ImageButton ID="btnDatMua" runat="server" ImageUrl="~/Styles/Images/buy.png"
                                                        CommandArgument='<%# Eval("ID") %>' CommandName="Mua" />
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        &nbsp;
                                    </td>
                                    <td align="center">
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <EmptyDataTemplate>
                            <div class="RadListView RadListView_Default">
                                <div class="rlvEmpty">
                                    Dữ liệu đang cập nhật</div>
                            </div>
                        </EmptyDataTemplate>
                    </telerik:RadListView>
                </td>
            </tr>
            <tr>
                <td>
                    <uc2:ucDetailTab ID="ucDetailTab1" runat="server" />
                    <br />
                    Sản phẩm cùng loại :
                </td>
            </tr>
            <tr>
                <td>
                    <div id="pageing">
                        <uc1:ucGetOtherById ID="ucGetOtherById1" runat="server" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="main-content-botton">
    </div>
</div>
